<template>
    <div>
        <el-form :model="purchaseForm" label-width="120px" :rules="FormRules" ref="addForm">
            <!-- <el-form-item label="公司" prop="region" required>
                <el-select v-model="purchaseForm.region" placeholder="请选择公司">
                    <el-option label="公司1" value="1"></el-option>
                    <el-option label="公司2" value="2"></el-option>
                </el-select>
            </el-form-item> -->
            <el-form-item label="部门" prop="region" required>
                <el-select v-model="purchaseForm.region" placeholder="请选择部门">
                    <el-option label="部门1" value="1"></el-option>
                    <el-option label="部门2" value="2"></el-option>
                </el-select>
            </el-form-item>
            <el-form-item label="请购人" prop="region" required>
                <el-select v-model="purchaseForm.region" placeholder="请选择请购人">
                    <el-option label="请购人1" value="1"></el-option>
                    <el-option label="请购人2" value="2"></el-option>
                </el-select>
            </el-form-item>
            <el-form-item label="需求日期" required>
                <el-form-item prop="date1">
                    <el-date-picker type="date" placeholder="选择日期" v-model="purchaseForm.date1"></el-date-picker>
                </el-form-item>
            </el-form-item>
            <el-form-item label="采购产品" prop="name" required>
                <el-input v-model="purchaseForm.name"></el-input>
            </el-form-item>
            <el-form-item label="采购数量" prop="name" required>
                <el-input-number v-model="purchaseForm.num" :min="1"></el-input-number>
            </el-form-item>
            
            <el-form-item label="建议供应商" prop="name">
                <el-input v-model="purchaseForm.name"></el-input>
            </el-form-item>
            <el-form-item alient="center">
                <el-button type="primary" @click="onSubmit">确定</el-button>
            </el-form-item>
        </el-form>
    </div>
</template>
<script>
export default {
  data() {
    return {
      purchaseForm: {},
      FormRules: {
        // name: [
        //   { required: true, message: "请输入活动名称", trigger: "blur" },
        //   { min: 3, max: 5, message: "长度在 3 到 5 个字符", trigger: "blur" }
        // ]
      }
    };
  },
  methods: {
    onSubmit() {
      this.$message({
        message: "成功",
        type: "success"
      });
      this.$emit('hideTotas')
    }
  }
};
</script>

<style lang="less" scoped>
</style>
